package com.jml;

import com.jml.constant.Constant;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@Scope(Constant.SCOPE_NAME + "zz")
@Scope(Constant.SCOPE_NAME + "zz")
public class TestController {

    public TestController() {
        System.out.println("初始化TestController");
    }

    /*@Value("${jml.address}")
    private String address;

    @GetMapping("/getJMl")
    public String getJml() {
        return address;
    }*/


    @GetMapping("/getJMl")
    public String getJml() {
        return "zzzzzzz";
    }
}
